﻿using System;

namespace diantou.web.ajax.enterprise
{
    /// <summary>
    /// 企业用户考试权限调用
    /// </summary>
    abstract class examHandle<callType> : permissionHandle<callType>
        where callType : examHandle<callType>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        protected override bool loadHeader()
        {
            if (base.loadHeader())
            {
                if (sessionUser.IsEnterprisePermission) return true;
                AjaxResponse(new fastCSharp.code.cSharp.webView.errorPath { ErrorPath = diantou.dataModel.path.pub.EnterpriseLogin });
            }
            return false;
        }
    }
}
